/*
 * @Author: your name
 * @Date: 2021-09-12 20:56:02
 * @LastEditTime: 2021-09-13 14:03:14
 * @LastEditors: your name
 * @Description: In User Settings Edit
 * @FilePath: \team\src\store\getters.js
 */
import { getToken } from '@/utils/auth'
import { getMenu } from '@/utils/menu'
import { getRole } from '@/utils/role'

// 让模块中常用到的数据，可以更佳方便的去获取
export default {
  token: state => state.cont.token || getToken(),
  // menu: state => state.user.menu.length > 0 ? state.user.menu : getMenu(),
  // role: state => state.user.role || getRole()
}